﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo
{
    [NHibernateEntity(Table = "CurrencyExchangeRates")]
    public class CurrencyExchangeRate
    {
        public CurrencyExchangeRate() { }

        [PrimaryKey]
        public virtual int Id { get; set; }

        [BelongsTo(Column = "ID_Currency")]
        public virtual Currency Currency { get; set; }
        
        [Property]
        public virtual double ExchangeRate { get; set; }

        [Property]
        public virtual DateTime ExchangeDate { get; set; }
    }
}
